ls | while read line ; do echo $line ; sed -i "" -e "s/^export const vertex/static const char *${line%.glsl.h}_vertex = R\"EOF\(/g" -e "s/^export const fragment/static const char *${line%.glsl.h}_fragment = R\"EOF\(/g" -e 's/;/)EOF";/g' $line ; done

